import { Home,Detail } from '../pages';
import React from 'react';

export interface RouterType  {
    path: string,
    component: React.LazyExoticComponent<any>,
    root: string[],
    notExect?: boolean,
}

const HomeRouter: RouterType = {
    path: '/',
    component: Home,
    root:[],
}

const DetailRouter: RouterType = {
    path: '/detail',
    component: Detail,
    root:[],
}

const Routers: RouterType[] = ([
    HomeRouter,
    DetailRouter
])

export {
    Routers
}
